<template>
  <div class="home">
    <router-link to="/city" class="current">{{this.$store.state.city}}</router-link>
  </div>
</template>

<script>

export default {
  name: 'Home',
  // data() {
  //   return {
  //     city:""
  //   }
  // },
  mounted() {
    console.log(this.$store.state.city)//武汉
    // this.city = this.$store.state.city
  },
}
</script>
<style scoped>
.current{
  color: red;
}
</style>
